package xin.common.http.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <pre>
 * Error Response Model
 * </pre>
 *
 * @author lixin_ma@outlook.com
 * @version 1.0
 * @since 2018/7/29 0:00
 */
@Builder
@Data
public class ErrorResponse implements Serializable {

    private Boolean success = Boolean.FALSE;

    private String msg;

    private String code;

    private String path;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
}
